import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import io from "./com/uni-socket.io.js"
import uView from "uview-ui";
Vue.use(uView);
Vue.config.productionTip = false
const baseurl="http://112.74.185.144:8000"
// const baseurl="http://localhost:8000"
Vue.prototype.socket= io(baseurl, {
				query: {},
				transports: ['websocket', 'polling'],
				timeout: 4000,
			});
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif